package com.liao.ticket.service;

import com.liao.ticket.dao.pojo.Flight;
import com.liao.ticket.vo.Result;
import com.liao.ticket.vo.params.FlightParams;
import com.liao.ticket.vo.params.PageParams;

public interface FlightService {
    Result selectOneById(Long id);

    Result selectListByFidAndTidAndFlyTime(FlightParams flightParams, PageParams pageParams);

    Flight findOneById(Long flightId);

    Result addOne(FlightParams flightParams);

    Result updateOneAll(FlightParams flightParams);

    Result updateOneForAirLine(FlightParams flightParams);

    Result deleteOne(Long id);

    Result updateOneInfoForManager(FlightParams flightParams);

    Result updateOneTypeForManager(FlightParams flightParams);

    Flight selectOneByFidAndMid(Long flightId, Long mid);
}
